import React, { Component } from 'react';
class CommentList extends Component {
    state = {  } 
    render() { 
        return (<div>
        <ul>
          {
            this.props.list.map((item, key) => (
              <li key={key}>{item.title}<p>{item.desc}</p></li>
            ))
          }
          </ul>
        </div>);
    }
}
 
export default CommentList;